<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center underLease_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub underLease_fd0_0'>
					<view class='flex flex-wrap align-center underLease_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  underLease_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<view class='flex flex-wrap align-stretch justify-center'>
						<text class='underLease_fd0_0_c1_c0'>房源详情</text>
					</view>
					<view class='flex flex-wrap align-center justify-end underLease_fd0_0_c0'>
					</view>
				</view>
			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout underLease_flex_1">
				<view class='flex flex-wrap align-center underLease_fd1_0'>
					<view class='flex flex-wrap align-center underLease_fd1_0_c0'>
					</view>
					<text class='underLease_fd1_0_c1'>房源介绍</text>
				</view>
				<view class='flex flex-direction flex-wrap align-stretch underLease_fd1_1'>
					<view class='flex flex-wrap align-center justify-between underLease_fd1_1_c0'>
						<view class='flex flex-wrap align-center'>
							<text class='underLease_fd1_1_c0_c0_c0'>房源名称：</text>
							<text class='underLease_fd1_1_c0_c0_c1'>{{dataMes.title}}</text>
						</view>
						<button class='underLease_fd1_1_c0_c1' v-if="district_id == 1">住宅</button>
						<button class='underLease_fd1_1_c0_c1' v-if="district_id == 4">写字楼</button>
						<button class='underLease_fd1_1_c0_c1' v-if="district_id == 2">商铺</button>
						<button class='underLease_fd1_1_c0_c1' v-if="district_id == 6">厂房</button>
					</view>
					<view class='flex flex-wrap align-center underLease_fd1_1_c0'>
						<text class='underLease_fd1_1_c0_c0_c0'>楼层：</text>
						<text class='underLease_fd1_1_c0_c0_c1'>{{dataMes.floor}}</text>
					</view>
					<view class='flex flex-wrap align-center underLease_fd1_1_c0'>
						<text class='underLease_fd1_1_c0_c0_c0'>付款方式：</text>
						<text class='underLease_fd1_1_c0_c0_c1'>{{dataMes.build_deposit}}</text>
					</view>
					<view class='flex flex-wrap align-center underLease_fd1_1_c0'>
						<text class='underLease_fd1_1_c0_c0_c0'>起止日期：</text>
						<text class='underLease_fd1_1_c0_c0_c1'>{{dataMes.createtime | timeFormat}}</text>
						<text class='underLease_fd1_1_c3_c2'>至</text>
						<text class='underLease_fd1_1_c0_c0_c1'>2024-07-01</text>
					</view>
					<view class='flex flex-wrap align-center underLease_fd1_1_c0'>
						<text class='underLease_fd1_1_c0_c0_c0'>房租金额：</text>
						<text class='underLease_fd1_1_c0_c0_c1'>{{dataMes.price}}</text>
						<text class='underLease_fd1_1_c0_c0_c1'>元/</text>
						<text class='underLease_fd1_1_c0_c0_c1'>月</text>
					</view>
				</view>
				<view class='flex flex-wrap align-center underLease_fd1_0'>
					<view class='flex flex-wrap align-center underLease_fd1_0_c0'>
					</view>
					<text class='underLease_fd1_0_c1'>租户信息</text>
				</view>
				<view class='flex flex-direction flex-wrap align-stretch underLease_fd1_1'>
					<view class='flex flex-direction flex-wrap align-stretch underLease_fd1_3_c0'>
						<view class='flex flex-wrap align-center underLease_fd1_1_c0'>
							<text class='underLease_fd1_1_c0_c0_c0'>承租人姓名：</text>
							<text class='underLease_fd1_1_c0_c0_c1'>张怀民</text>
						</view>
						<view class='flex flex-wrap align-center underLease_fd1_1_c0'>
							<text class='underLease_fd1_1_c0_c0_c0'>联系电话：</text>
							<text class='underLease_fd1_1_c0_c0_c1'>17612341234</text>
						</view>
						<view class='flex flex-wrap align-center underLease_fd1_1_c0'>
							<text class='underLease_fd1_1_c0_c0_c0'>性别：</text>
							<text class='underLease_fd1_1_c0_c0_c1'>男</text>
						</view>
						<view class='flex flex-wrap align-center underLease_fd1_1_c0'>
							<text class='underLease_fd1_1_c0_c0_c0'>身份证号：</text>
							<text class='underLease_fd1_1_c0_c0_c1'>**************1810</text>
						</view>
						<view class='flex flex-wrap align-center underLease_fd1_1_c0'>
							<text class='underLease_fd1_1_c0_c0_c0'>入住日期：</text>
							<text class='underLease_fd1_1_c0_c0_c1'>2023-08-02</text>
						</view>
						<view class='flex flex-wrap align-center underLease_fd1_1_c0'>
							<text class='underLease_fd1_1_c0_c0_c0'>离住日期：</text>
						</view>
					</view>
					<view class='flex flex-direction flex-wrap align-stretch underLease_fd1_3_c1'>
						<view class='flex flex-wrap align-center underLease_fd1_1_c0'>
							<text class='underLease_fd1_1_c0_c0_c0'>同住人姓名：</text>
							<text class='underLease_fd1_1_c0_c0_c1'>张怀民1</text>
						</view>
						<view class='flex flex-wrap align-center underLease_fd1_1_c0'>
							<text class='underLease_fd1_1_c0_c0_c0'>关系：</text>
							<text class='underLease_fd1_1_c0_c0_c1'>合租</text>
						</view>
						<view class='flex flex-wrap align-center underLease_fd1_1_c0'>
							<text class='underLease_fd1_1_c0_c0_c0'>性别：</text>
							<text class='underLease_fd1_1_c0_c0_c1'>男</text>
						</view>
						<view class='flex flex-wrap align-center underLease_fd1_1_c0'>
							<text class='underLease_fd1_1_c0_c0_c0'>身份证号：</text>
							<text class='underLease_fd1_1_c0_c0_c1'>**************1810</text>
						</view>
						<view class='flex flex-wrap align-center underLease_fd1_1_c0'>
							<text class='underLease_fd1_1_c0_c0_c0'>入住日期：</text>
							<text class='underLease_fd1_1_c0_c0_c1'>2023-08-02</text>
						</view>
						<view class='flex flex-wrap align-center underLease_fd1_1_c0'>
							<text class='underLease_fd1_1_c0_c0_c0'>离住日期：</text>
						</view>
					</view>
				</view>
				<view class='flex flex-wrap align-center underLease_fd1_0'>
					<view class='flex flex-wrap align-center underLease_fd1_0_c0'>
					</view>
					<text class='underLease_fd1_0_c1'>变更记录</text>
				</view>
				<view class='flex flex-direction flex-wrap align-stretch underLease_fd1_1'>
					<view class='flex flex-direction flex-wrap align-stretch underLease_fd1_3_c0'>
						<view class='flex flex-wrap align-center underLease_fd1_1_c0'>
							<text class='underLease_fd1_1_c0_c0_c0'>变更原因：</text>
							<text class='underLease_fd1_5_c0_c0_c1'>租期内转租</text>
						</view>
						<view class='flex flex-wrap align-center underLease_fd1_1_c0'>
							<text class='underLease_fd1_1_c0_c0_c0'>承租人姓名：</text>
							<text class='underLease_fd1_1_c0_c0_c1'>张怀民</text>
						</view>
						<view class='flex flex-wrap align-center underLease_fd1_1_c0'>
							<text class='underLease_fd1_1_c0_c0_c0'>联系电话：</text>
							<text class='underLease_fd1_1_c0_c0_c1'>17612341234</text>
						</view>
						<view class='flex flex-wrap align-center underLease_fd1_1_c0'>
							<text class='underLease_fd1_1_c0_c0_c0'>性别：</text>
							<text class='underLease_fd1_1_c0_c0_c1'>男</text>
						</view>
						<view class='flex flex-wrap align-center underLease_fd1_1_c0'>
							<text class='underLease_fd1_1_c0_c0_c0'>身份证号：</text>
							<text class='underLease_fd1_1_c0_c0_c1'>**************1810</text>
						</view>
						<view class='flex flex-wrap align-center underLease_fd1_1_c0'>
							<text class='underLease_fd1_1_c0_c0_c0'>入住日期：</text>
							<text class='underLease_fd1_1_c0_c0_c1'>2023-08-02</text>
						</view>
						<view class='flex flex-wrap align-center underLease_fd1_1_c0'>
							<text class='underLease_fd1_1_c0_c0_c0'>离住日期：</text>
							<text class='underLease_fd1_1_c0_c0_c1'>2023-08-02</text>
						</view>
					</view>
					<view class='flex flex-direction flex-wrap align-stretch underLease_fd1_3_c1'>
						<view class='flex flex-wrap align-center underLease_fd1_1_c0'>
							<text class='underLease_fd1_1_c0_c0_c0'>同住人姓名：</text>
							<text class='underLease_fd1_1_c0_c0_c1'>张怀民1</text>
						</view>
						<view class='flex flex-wrap align-center underLease_fd1_1_c0'>
							<text class='underLease_fd1_1_c0_c0_c0'>关系：</text>
							<text class='underLease_fd1_1_c0_c0_c1'>合租</text>
						</view>
						<view class='flex flex-wrap align-center underLease_fd1_1_c0'>
							<text class='underLease_fd1_1_c0_c0_c0'>性别：</text>
							<text class='underLease_fd1_1_c0_c0_c1'>男</text>
						</view>
						<view class='flex flex-wrap align-center underLease_fd1_1_c0'>
							<text class='underLease_fd1_1_c0_c0_c0'>身份证号：</text>
							<text class='underLease_fd1_1_c0_c0_c1'>**************1810</text>
						</view>
						<view class='flex flex-wrap align-center underLease_fd1_1_c0'>
							<text class='underLease_fd1_1_c0_c0_c0'>入住日期：</text>
							<text class='underLease_fd1_1_c0_c0_c1'>2023-08-02</text>
						</view>
						<view class='flex flex-wrap align-center underLease_fd1_1_c0'>
							<text class='underLease_fd1_1_c0_c0_c0'>离住日期：</text>
							<text class='underLease_fd1_1_c0_c0_c1'>2023-08-02</text>
						</view>
					</view>
				</view>
			</view>
			<!---flex布局flex布局结束-->
		</view>
	</view>
</template>
<script>
	export default {
		components: {},
		filters: {
			timeFormat(timestamp) {
				var time = new Date(timestamp * 1000);
				var y = time.getFullYear(); //getFullYear方法以四位数字返回年份
				var m = time.getMonth() + 1; // getMonth方法从 Date 对象返回月份 (0 ~ 11)，返回结果需要手动加一
				var d = time.getDate(); // getDate方法从 Date 对象返回一个月中的某一天 (1 ~ 31)
				// var h = time.getHours();
				// var f = time.getMinutes()
		
				function timeAdd(m) {
					return m < 10 ? '0' + m : m;
				};
				var timeStr = y + "-" + timeAdd(m) + "-" + timeAdd(d);
				return timeStr;
			}
		},
		data() {
			return {
				id:'',
				district_id:'1',
				dataMes:{}
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},
		},
		watch: {},
		onLoad(options) {
			let {id,district_id} = options
			if(id) this.id = id
			if(district_id) this.district_id = district_id
			this.getInfo()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			getInfo(){
				uni.showLoading({
					title:'加载中'
				})
				this.$api.post('/m6752/655308b31157f',{
					id:this.id
				}).then(res=>{
					uni.hideLoading()
					if(res.data.code == 1){
						this.dataMes = res.data.data
					}else{
						this.$message.info(res.data.msg)
					}
				})
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #F8F8F8;
		background-size: 100% auto;
	}

	.underLease_flex_0 {
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.underLease_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333333;
		line-height: 40rpx;
	}

	.underLease_fd0_0_c0_c0 {
		font-size: 36rpx;
		color: #333;
	}

	.underLease_fd0_0_c0 {
		width: 120rpx;
	}

	.underLease_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.underLease_flex_1 {
		padding: 0rpx 24rpx 0rpx 24rpx;
	}

	.underLease_fd1_5_c0_c0_c1 {
		color: rgba(234, 64, 64, 1);
		font-size: 28rpx;
		font-weight: 400;
		line-height: 32rpx;
	}

	.underLease_fd1_3_c1 {
		margin: 16rpx 0rpx 0rpx 0rpx;
	}

	.underLease_fd1_3_c0 {
		border-bottom: 1px solid #eee;
		padding: 0rpx 0rpx 16rpx 0rpx;
	}

	.underLease_fd1_1_c3_c2 {
		color: var(--benbenFontColor0);
		font-size: 28rpx;
		font-weight: 400;
		line-height: 32rpx;
		margin: 0rpx 8rpx 0rpx 8rpx;
	}

	.underLease_fd1_1_c0_c1 {
		background: rgba(254, 244, 229, 1);
		border-radius: 6rpx 6rpx 6rpx 6rpx;
		width: 64rpx;
		line-height: 36rpx;
		font-size: 22rpx;
		color: rgba(240, 148, 0, 1);
		height: 36rpx;
	}

	.underLease_fd1_1_c0_c0_c1 {
		color: var(--benbenFontColor0);
		font-size: 28rpx;
		font-weight: 400;
		line-height: 32rpx;
	}

	.underLease_fd1_1_c0_c0_c0 {
		color: var(--benbenFontColor2);
		font-size: 28rpx;
		font-weight: 400;
		line-height: 32rpx;
	}

	.underLease_fd1_1_c0 {
		margin: 16rpx 0rpx 16rpx 0rpx;
	}

	.underLease_fd1_1 {
		background: var(--benbenbgColor1);
		margin: 0rpx 0rpx 24rpx 0rpx;
		padding: 16rpx 24rpx 16rpx 24rpx;
		border-radius: 16rpx;
		background-size: 100% auto;
	}

	.underLease_fd1_0_c1 {
		color: #333333;
		font-size: 32rpx;
		font-weight: 500;
		line-height: 36rpx;
	}

	.underLease_fd1_0_c0 {
		background: #FC5F80;
		width: 8rpx;
		height: 28rpx;
		border-radius: 30rpx 30rpx 30rpx 30rpx;
		margin: 0rpx 16rpx 0rpx 0rpx;
	}

	.underLease_fd1_0 {
		margin: 32rpx 0rpx 24rpx 0rpx;
	}
</style>